package com.flyco.modules.oms.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 饿了么订单明细表
 * @Author: flyco
 * @Date:   2021-08-10
 * @Version: V1.0
 */
@Data
@TableName("oms_eleme_goods_item")
@ApiModel(value="oms_eleme_retail_order对象", description="饿了么订单表")
public class OmsElemeGoodsItem implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
	@JsonSerialize(using= ToStringSerializer.class)
	private Long id;
	/**订单id*/
    @ApiModelProperty(value = "订单id")
	private String orderId;
	/**商品费用*/
    @Excel(name = "商品费用", width = 15)
    @ApiModelProperty(value = "商品费用")
	private java.math.BigDecimal productAmount;
	/**商品名称*/
    @Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
	private String productName;

	/**商品分类*/
	@Excel(name = "商品分类", width = 20)
	@TableField(exist = false)
	private String productCategory;

	/**商品ID*/
    @Excel(name = "商品ID", width = 15)
    @ApiModelProperty(value = "商品ID")
	private Long skuId;
	/**新商品ID*/
    @Excel(name = "新商品ID", width = 15)
    @ApiModelProperty(value = "新商品ID")
	private Long vfoodId;
	/**商品自定义ID*/
    @Excel(name = "商品自定义ID", width = 15)
    @ApiModelProperty(value = "商品自定义ID")
	private String customProductId;
	/**商品条形码*/
    @Excel(name = "商品条形码", width = 15)
    @ApiModelProperty(value = "商品条形码")
	private String barCode;
	/**优惠前单价*/
    @Excel(name = "优惠前单价", width = 15)
    @ApiModelProperty(value = "优惠前单价")
	private java.math.BigDecimal beforePreferentialPrice;
	/**优惠后单价*/
    @Excel(name = "优惠后单价", width = 15)
    @ApiModelProperty(value = "优惠后单价")
	private java.math.BigDecimal afterPreferentialPrice;
	/**优惠价购买数量*/
    @Excel(name = "优惠价购买数量", width = 15)
    @ApiModelProperty(value = "优惠价购买数量")
	private Integer preferentialQty;
	/**购买数量*/
    @Excel(name = "购买数量", width = 15)
    @ApiModelProperty(value = "购买数量")
	private Integer qty;
	/**自定义属性*/
    @Excel(name = "自定义属性", width = 15)
    @ApiModelProperty(value = "自定义属性")
	private String customProperties;
	/**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
	private String description;
	/**配送费*/
    @Excel(name = "配送费", width = 15)
    @ApiModelProperty(value = "配送费")
	private String deliverFee;
	/**免配送费*/
    @Excel(name = "免配送费", width = 15)
    @ApiModelProperty(value = "免配送费")
	private String zeroDeliveryFee;
	/**包装费*/
    @Excel(name = "包装费", width = 15)
    @ApiModelProperty(value = "包装费")
	private String packageFee;
	/**商家活动补贴*/
    @Excel(name = "商家活动补贴", width = 15)
    @ApiModelProperty(value = "商家活动补贴")
	private String shopPart;
	/**是否参加满赠活动*/
    @Excel(name = "是否参加满赠活动", width = 15)
    @ApiModelProperty(value = "是否参加满赠活动")
	private String attendGift;
	/**商家券补贴*/
    @Excel(name = "商家券补贴", width = 15)
    @ApiModelProperty(value = "商家券补贴")
	private String shopCouponAmount;
	/**商家红包补贴*/
    @Excel(name = "商家红包补贴", width = 15)
    @ApiModelProperty(value = "商家红包补贴")
	private String shopRedbagAmount;
	/**商家配送费补贴*/
    @Excel(name = "商家配送费补贴", width = 15)
    @ApiModelProperty(value = "商家配送费补贴")
	private String shopDeliveryAmount;
	/**商家礼金补贴*/
    @Excel(name = "商家礼金补贴", width = 15)
    @ApiModelProperty(value = "商家礼金补贴")
	private String shopCashAmount;
	/**非商家活动补贴*/
    @Excel(name = "非商家活动补贴", width = 15)
    @ApiModelProperty(value = "非商家活动补贴")
	private String elemePart;
	/**非商家券补贴*/
    @Excel(name = "非商家券补贴", width = 15)
    @ApiModelProperty(value = "非商家券补贴")
	private String elemeCouponAmount;
	/**非商家红包补贴*/
    @Excel(name = "非商家红包补贴", width = 15)
    @ApiModelProperty(value = "非商家红包补贴")
	private String elemeRedbagAmount;
	/**非商家配送费补贴*/
    @Excel(name = "非商家配送费补贴", width = 15)
    @ApiModelProperty(value = "非商家配送费补贴")
	private String elemeDeliveryAmount;
	/**非商家礼金补贴*/
    @Excel(name = "非商家礼金补贴", width = 15)
    @ApiModelProperty(value = "非商家礼金补贴")
	private String elemeCashAmount;
	/**顾客买券补贴*/
    @Excel(name = "顾客买券补贴", width = 15)
    @ApiModelProperty(value = "顾客买券补贴")
	private String allowanceServiceFee;
	/**其他*/
    @Excel(name = "其他", width = 15)
    @ApiModelProperty(value = "其他")
	private String other;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;
}
